{% extends "dish/dish_base.html" %}

{% block title %}
    修改菜
{% endblock %}
{% block aside %}
    {{ super() }}
{% endblock %}

{% block content %}
    <ol class="breadcrumb">
          <li><a href="#">首页</a></li>
          <li><a href="#">菜管理</a></li>
          <li class="active">修改菜品信息</li>
    </ol>
    <form class="form-inline" action="{{ url_for("dish.update_dish") }}" method="post">
      <div class="form-group">
        <label for="exampleInputName2">菜名</label>
        <input type="text" class="form-control" name="dish_name" id="exampleInputName2" placeholder="菜名">
      </div>

        <button type="submit" class="btn btn-default">查找</button>
    </form>

    <table class="table">
        <tr>
            <td>序号</td>
            <td>菜名</td>
            <td>操作</td>
        </tr>
        {% for dish in dishes %}
            <tr>
                <td>{{ loop.index }}</td>
                <td>{{ dish.dish_name }}</td>
                <td><a href="{{url_for("dish.show_update_dish",dish_no=dish.dish_no)}}" class="btn btn-warning btn-sm "
                       role="button" >修改</a></td>
            </tr>
        {% endfor %}
    </table>
{% endblock %}